package com.nowcoder;

import java.util.Scanner;

/**
 *将数字转换成英文
 */
public class NumberToEnglish {
    static String[] dozen = {"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten",
            "eleven", "twelve", "thirteen", "forteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen"};
    static String[] dozens = {"zero","ten","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"};
    static int[] range = {100, 1000, 1000000, 1000000000};
    static String[] ranges = new String[]{"hundred", "thousand", "million", "billion"};

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int num = in.nextInt();
        System.out.println(translate(num));
    }

    public static String translate(int num) {
        if (num < 20) {
            return dozen[num];
        }
        if (num < 100) {
            return dozens[num / 10] + (num % 10 == 0 ? "" : " " + dozen[num % 10]);
        }
        for (int i = 0; i < 4; i++) {
            if (num < range[i + 1]) {
                return translate(num / range[i]) + " " + ranges[i] + (num % range[i] == 0 ? "" : (i != 0 ? " " : " and ") + translate(num % range[i]));
            }
        }
        return "";
    }
}
